<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/11/23
  Time: 19:20
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page isELIgnored="false" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>游记详情</title>
    <style>
        h2,p {
            margin: 0;
            padding: 0;
        }
        a {
            text-decoration: none;

        }
        img {
            display: block;
            border: none;
        }
        body {
            background-color:  rgb(255, 242, 226);
        }
        ul li{
            list-style-type: none
        }
        .rg_layout {
            border-radius: 11px;
            overflow: hidden;
            width: 950px;
            margin: 90px auto;
            background-color: #fff;
            border: 7px solid #eee;
        }
        .rg_left img {
            width: 400px;
            height: 400px;
            margin: 20px;
        }
        .rg_left h3 {
            padding: 10px 20px 10px 20px;
            font-size: 20px;
            width: 400px;
        }
        .rg_right h2 {
            font-size: 40px;
            color: #f70808;
            margin-left: 150px;
        }
        .rg_right p {
            overflow: hidden;
            word-wrap:break-word;
            height: 233px;
            text-indent: 2em;
            padding-right: 10px;
            margin-left: 50px;
            margin-top: 40px;
            font-size: 20px;
        }
        .rg_right span {
            position: absolute;
            font-size: 30px;
            color: #e4393c;
            bottom: 190px;
            right: 63px;
        }
        .bottom_buy a {
            line-height: 46px;
            text-decoration: none;
            color: #fff;
            font-size: 19px;
            padding: 0 23px;
        }
        .comment {
            border-bottom: 1px solid #aaa;
            color: #0077aa;
        }
        .title {
            margin: 15px auto;
        }
        .title h2 {
            text-align: center;
        }
        .text {
            text-indent: 2em;
        }
        .link {
            padding-left: 0;
            text-decoration: none;
            font-size: 19px;
            margin-top: 30px;
        }
    </style>
</head>
<body>
<div class="rg_layout">
    <div class="title">
        <h2>${travel.title}</h2>
    </div>
    <p class="text">${travel.text}</p>
    <div class="link">
        <a href="/user/toMyComment?travelid=${travel.travelid}">去发表我的评论></a>
    </div>
    <h3>评论区</h3>
    <ul>
        <c:forEach items="${comments}" var="comment" varStatus="s">
            <li>
                <div class="comment">
                    <h4>用户:${comment.userid}</h4>
                    <p>${comment.ctext}</p>
                </div>
            </li>
        </c:forEach>
    </ul>

</div>
</body>
</html>
